<%--
  Created by IntelliJ IDEA.
  User: WT-SUN
  Date: 2017/4/19
  Time: 14:14
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!doctype html>
<html>
<head>
    <title>体检数据</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript">
        var arrForbid = [];
        var arrDoubt=[];
        var arrOther=[];
        <c:if test="${fn:length(phy.phyForbid) >0}">
        <c:forEach var="lis" items="${phy.phyForbid}">
        var obj = {
            id:'${lis.id}',
            forbidName:'${lis.forbidName}',
            forbidWork:'${lis.forbidWork==null?"":lis.forbidWork}',
            remarks:'${lis.remarks==null?"":lis.remarks}'
        };
        arrForbid.push(obj);
        </c:forEach>
        </c:if>
        <c:if test="${fn:length(phy.phyDoubt) >0}">
        <c:forEach var="lis" items="${phy.phyDoubt}">
        var obj = {
            id:'${lis.id}',
            diseasesName:'${lis.diseasesName}',
            diseasesCode:'${lis.diseasesCode==null?"":lis.diseasesCode}',
            remarks:'${lis.remarks==null?"":lis.remarks}'
        };
        arrDoubt.push(obj);
        </c:forEach>
        </c:if>
        <c:if test="${fn:length(phy.phyOther) >0}">
        <c:forEach var="lis" items="${phy.phyOther}">
        var obj = {
            id:'${lis.id}',
            diseasesName:'${lis.diseasesName}',
            remarks:'${lis.remarks==null?"":lis.remarks}'
        };
        arrOther.push(obj);
        </c:forEach>
        </c:if>
        var danweiName="";
        <c:if test="${fn:length(phy.userDepartmentList) >0}">
        <c:forEach var="lis" items="${phy.userDepartmentList}">
        danweiName += ',' +'${lis.deptName}';
        </c:forEach>
        danweiName=danweiName.substring(1);
        </c:if>
        var phyHarmIdsName="";
        <c:if test="${fn:length(phy.phyHarmIds) >0}">
        <c:forEach var="lis" items="${phy.phyHarmIds}">
        phyHarmIdsName += ',' +'${lis.name}';
        </c:forEach>
        phyHarmIdsName=phyHarmIdsName.substring(1);
        </c:if>
    </script>
    <script type="text/javascript" src="${ctx}/resources/js/occupationalHealth/phyData/info.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <%--<a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>--%>
</div>
<form id="formPhyData" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <input type="hidden" id="phyId" name="id" value="${phy.id}"/>
        <div class="cuttle">
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">姓名:</label>
                    <input type="text" name="userId" class="easyui-textbox" value="${phy.userPhy==null?"":phy.userPhy}"
                           style="width:240px;" data-options="readonly:true"/>
                    <%--<span>*</span>--%>
                </div>
                <div class="form_one">
                    <label class="lable-style">工号:</label>
                    <input class="easyui-textbox" type="text" id="gonghao" value="${phy.userCode==null?"":phy.userCode}" data-options="readonly:true"
                           style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">性别:</label>
                    <input class="easyui-textbox" type="text" <c:if test="${phy.gender!=null}">  value="${phy.gender=='1'?"男":'女'}" </c:if> id="xingbie" data-options="readonly:true"
                           style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">单位名称:</label>
                    <input id="danwei" type="text" class="easyui-textbox" data-options="readonly:true"
                           style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">岗位:</label>
                    <input id="gangwei" type="text" class="easyui-textbox"  value="${phy.postName==null?"":phy.postName}" data-options="readonly:true"
                           style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">主要症状:</label>
                    <input class="easyui-textbox" type="text"  data-options="readonly:true"
                           style="width: 240px;"  value="${phy.mainSymptom==null?"":phy.mainSymptom}" >
                </div>

            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">体检批次:</label><%--editable="false"--%>
                    <input class="easyui-textbox" type="text"  data-options="readonly:true"
                           style="width: 240px;"  value="${phy.batch}">
                </div>
                <div class="form_one">
                    <label class="lable-style">体检类别:</label>
                    <input id="leibie" type="text" class="easyui-textbox" value="${phy.planType==null?"":phy.planType}"
                           data-options="readonly:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">诊断单位:</label>
                    <input class="easyui-textbox" type="text"  data-options="readonly:true"
                           style="width: 240px;"  value="${phy.serviceName==null?"":phy.serviceName}" >
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one" style="width: 720px;">
                    <label class="lable-style">接触职业危害:</label>
                    <input class="easyui-textbox" type="text" id="zyweihai" editable="false"  data-options="readonly:true" style="width:600px;">
                    <input type="hidden" id="hazardFactorId" name="hazardFactor" />
                </div>
                <div class="form_one">
                    <label class="lable-style">体检日期:</label>
                    <input class="easyui-textbox" type="text"  data-options="readonly:true"
                           style="width: 240px;"  value="${phy.physicalDate==null?"":phy.physicalDate}" >
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>体检结果</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div style="clear: both">
                <div class="form_one" style="width: 720px;height: 40px">
                    <label class="lable-style">体检结论:</label>
                    <c:forEach var="lis" items="${con}">
                        <input type="checkbox" <c:if
                                test="${lis.text=='未见异常'}"> class="optionno" id="conclusionNo" name="conclusion" </c:if>
                                <c:if test="${lis.text=='复查'}"> class="optiony" id="conclusionFx" name="conclusion" </c:if>
                                <c:if test="${lis.text=='职业禁忌证'}"> class="optiony" id="conclusionZy" name="conclusion" </c:if>
                                <c:if test="${lis.text=='疑似职业病'}"> class="optiony" id="conclusionYs" name="conclusion" </c:if>
                                <c:if test="${lis.text=='其它疾病或异常'}"> class="optiony" id="conclusionQt" name="conclusion" </c:if>
                                <c:forEach var="itemCon" items="${phy.phyConclusions}"> <c:if
                                        test="${itemCon.conclusionId==lis.id}"> checked="checked"  </c:if></c:forEach>
                               value="${lis.id}"  disabled="disabled" />${lis.text}
                    </c:forEach>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;height: 60px">
                    <label class="lable-style">医生结论:</label>
                    <input name="doctorConclusion" type="text" class="easyui-textbox"
                           data-options="multiline:true,readonly:true"
                           style="width: 600px;height: 55px"
                           value="${phy.doctorConclusion==null?"":phy.doctorConclusion}"/>
                    <%--<span>*</span>--%>
                </div>
            </div>
            <div class="district-wrap" style="clear: both; <c:if test="${phy.options==null}"> display: none</c:if>" id="optionDiv">
                <div class="form_one">
                    <label class="lable-style">处理意见:</label>
                    <input class="easyui-textbox" type="text"  data-options="readonly:true"
                           style="width: 240px;"  value="${phy.optionsName==null?"":phy.optionsName}" >
                    <%--<input id="options" name="options" type="text" value="${phy.options==null?"":phy.options}"
                           style="width: 240px;" data-options="required:true">--%>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>体检附件</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <accessory:accessorySimple permission="" packageKey="phypage" uploadUserId="${loginUser.id}"
                                   packageInfos="${accessoryList}"
                                   accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
</form>
<div class="information" id="occforbidTbDiv" style="display:block;">
    <div class="information-title">
        <p>职业禁忌证</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <div class="enclosure">
        <%--<a id="occforbidTb_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg"
           style="margin:5px;">新增</a>
        <a id="occforbidTb_remove" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-trash fa-lg"
           style="margin:5px;">移除</a>
        <a id="occforbidTb_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg"
           style="margin:5px;">保存</a>--%>
        <table id="occforbidTb"></table>
    </div>
</div>
<div class="information" id="occdoubtTbDiv" style="display:block;">
    <div class="information-title">
        <p>疑似职业病</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <div class="enclosure">
        <%--<a id="occdoubtTb_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg"
           style="margin:5px;">新增</a>
        <a id="occdoubtTb_remove" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-trash fa-lg"
           style="margin:5px;">移除</a>
        <a id="occdoubtTb_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg"
           style="margin:5px;">保存</a>--%>
        <table id="occdoubtTb"></table>
    </div>
</div>
<div class="information" id="occotherTbDiv" style="display:block;">
    <div class="information-title">
        <p>其他疾病或异常</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <div class="enclosure">
        <%--<a id="occotherTb_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg"
           style="margin:5px;">新增</a>
        <a id="occotherTb_remove" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-trash fa-lg"
           style="margin:5px;">移除</a>
        <a id="occotherTb_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg"
           style="margin:5px;">保存</a>--%>
        <table id="occotherTb"></table>
    </div>
</div>
</body>
</html>

